package crm.model.teacherPC.net.job;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

import crm.model.NetConst;

public class MessageJob implements Job {
	String message;
	public MessageJob(String message){
		this.message=message;
	}
	@Override
	public Object doing(ObjectInputStream is, ObjectOutputStream os) {
		try{
			os.writeObject(NetConst.MESSAGE);
			os.writeObject(message);
			os.reset();
		}catch (IOException e){
			e.printStackTrace();
		}
		return null;
	}

}
